﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Content;
using Microsoft.Xna.Framework.Audio;

namespace _XNA__RunningDeath.DTO.NhanVat_DTO
{
    class CKhiZaZa:CNhanVat_DTO
    {
        public CKhiZaZa(ContentManager content, GameTime gameTime, SpriteBatch spriteBatch):base(content,gameTime,spriteBatch)
        {
            if(this._content != null)
                KhoiTao();
        }
        
        public void KhoiTao()
        {
            this.Frame = 1;
            this.SkinLengh = 5;
            this._dspointrun = this._content.Load<Dictionary<string, Rectangle>>(@"NhanVat/xmlKhiZaZa");
            this._texdie = this.Content.Load<Texture2D>(@"NhanVat/8");
            this._texleap = this.Content.Load<Texture2D>(@"NhanVat/7");
            this.TexPause = this.Content.Load<Texture2D>(@"NhanVat/pause");
            this.TexSkin = this._content.Load<Texture2D>(@"NhanVat/guiKhiZaZa");
            this.SongeffRun = this._content.Load<SoundEffect>(@"AmThanh/soundRun");
            this.SongeffLeap = this._content.Load<SoundEffect>(@"AmThanh/Jump");
        }
    }
}
